package com.sen.design.principle.demeter;

/**
 * 迪米特法则：一个对象应该对全其他对象保持最少的了解，又叫最少知道原则
 */
public class Test {

    public static void main(String[] args) {
        Boss boss = new Boss();
        TeamLeader teamLeader = new TeamLeader();
        boss.commandCheck(teamLeader);
    }
}
